<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<h:form id="loginForm">
		<p:panel header="Login" style="height:375px">
				
				<h:outputLabel for="username" value="Username" />
				<br />
				<p:inputText  id="username"	style="width:120px" value="#{loginBean.userName}" />
				<br />
				<h:outputLabel for="password" value="Password" />
				<br />
				<p:password size="18"  id="password" style="width:120px" value="#{loginBean.password}"/>

				<br /> <br />
				<p:commandButton value="Login"
					action="#{loginBean.login}" type="submit" update="loginForm" />
				 
				<p:commandButton 
					value="Register"
					action="#{registrationBean.initRegistration}"  />
				<br /> <br />

				<p:commandButton 
					value="Forgot Password"
					action="#{orderBean.navigateToRequestPassword}"  />
		</p:panel>
	</h:form>
</ui:composition>